FROM daocloud.io/redis:4-alpine
MAINTAINER wolferhua

RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories
RUN apk update
RUN apk add ruby ruby-rdoc ruby-irb && gem install redis
RUN mkdir /cluster
COPY redis-trib.rb /cluster

# docker build -t wolferhua/redis:4 .